<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>奖惩申请</title> <#include "../../commonUse.html"/>
</head>

<body>


	<div class="smart-body">
		<div class="main-title">工资管理>奖惩申请</div>
		<div class="border1pxe6">
			<div class="layui-layer-title">奖惩申请</div>
			<!--不需要横线直接从这复制 layui-filed-box内-->
			<div style="padding: 20px;">
				<form id="form1" action="" class="layui-form layui-form-pane">
					<input type="hidden" id="applyCode" name="applyCode"/>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">奖惩类型<font
						class="smart-required">*</font></label>
							<!--宽度太长可以设置layui-input-inline的style="width=190px;" 默认190px-->
							<div class="layui-input-inline">
								<select class="smart-body_select" name="rewardType"
									id="rewardType" dataType="LimitA" msg="奖惩类型不能为空！">
									<option value="">--请选择--</option>
								</select>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">等级<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<select class="smart-body_select" name="rewardLevel"
									id="rewardLevel" dataType="LimitA" msg="等级不能为空！">
									<option value="">--请选择--</option>
								</select>
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">金额(元)<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<input type="text" id="rewardMoney" name="rewardMoney" value="0"
									autocomplete="off" dataType="Number" msg="金额不能为空且为数字！"
									class="layui-input">
							</div>
						</div>
					</div>
					<!--layui-form-item新一行-->
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">工程项目<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<input type="text" id="projectName" name="projectName" placeholder="请选择项目"
									readonly="readonly" onclick="getProject();" autocomplete="off"
									dataType="LimitA" msg="工程项目不能为空！" class="layui-input">
								<input type="hidden" id="projectId" name="projectId" />
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">工人姓名<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<input type="text" id="workerName" name="workerName" placeholder="请选择工人"
									readonly="readonly" onclick="getWorker();" autocomplete="off"
									dataType="LimitA" msg="工人姓名不能为空！" class="layui-input">
								<input type="hidden" id="workerId" name="workerId" />
							</div>
						</div>
						<div class="layui-inline">
							<label class="layui-form-label">发生时间<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<input readonly="readonly" name="happenTime" dataType="LimitA"
									msg="申请日期不能为空！" id="happenTime" type="text"
									class="search_input_sc Wdate"
									onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd'})" />
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label">审批流程<font
						class="smart-required">*</font></label>
							<div class="layui-input-inline">
								<select class="smart-body_select" name="processId"
									id="processId" dataType="LimitA" msg="审批流程不能为空！">
									<option value="">--请选择--</option>
								</select>
							</div>
						</div>
					</div>
					<div class="layui-form-item layui-form-text">
						<label class="layui-form-label">事件描述<font
						class="smart-required">*</font></label>
						<div class="layui-input-block">
							<textarea id="rewardDesc" name="rewardDesc" placeholder="请输入内容" maxlength="300"
								class="layui-textarea" dataType="LimitA" msg="事件描述不能为空！"></textarea>
						</div>
					</div>

					<div class="layui-form-item layui-form-text">
						<label class="layui-form-label">处理结果<font
						class="smart-required">*</font></label>
						<div class="layui-input-block">
							<textarea id="rewardResult" name="rewardResult" maxlength="300"
								placeholder="请输入内容" class="layui-textarea" dataType="LimitA"
								msg="处理结果不能为空！"></textarea>
						</div>
					</div>
				</form>
				<!--不需要横线直接从这复制 layui-filed-box内 end-->

				<!--********按钮********-->
				<div class="smart-footer_btn">
					<button class="layui-btn" style="width: 200px;"
						onclick="saveRewardApply();">提交审批</button>
				</div>
				<!--********按钮end********-->
			</div>
		</div>
	</div>


</body>
<script
	src="${ctx.contextPath}/pages/business/salaryManage/js/rewardApply.js"></script>
<script src="${ctx.contextPath}/js/validator.js"></script>
</html>